﻿Interface IFFind

    ''' <summary>
    ''' 通过指定的图层名，属性字段，属性值查询符合条件的对象，并返回第一个符合条件的对象
    ''' </summary>
    ''' <param name="layerName">图层名</param>
    ''' <param name="fieldName">字段名</param>
    ''' <param name="fieldValue">字段值</param>
    ''' <returns>符合条件的第一个对象</returns>
    ''' <remarks></remarks>
    Function FindByAttribute(ByVal layerName As String, ByVal fieldName As String, ByVal fieldValue As String) As Object
    Function FindByID(ByVal layerName As String, ByVal fieldValue As String) As Object
    ''' <summary>
    '''通过名字查询符合条件的对象，并返回第一个符合条件的对象
    ''' </summary>
    ''' <param name="layerName">图层名</param>
    ''' <param name="fieldValue">Name属性所对应的值</param>
    ''' <returns>符合条件的第一个对象</returns>
    ''' <remarks></remarks>
    Function FindByName(ByVal layerName As String, ByVal fieldValue As String) As Object

    Function FindByName2(ByVal layerName As String, ByVal fieldValue As String) As Object


    ''' <summary>
    ''' 根据点位置搜索指定范围内的对象，并返回该对象id数组
    ''' </summary>
    ''' <param name="layerName">搜索的图层名</param>
    ''' <param name="point">点</param>
    ''' <param name="radius">距离该点半径</param>
    ''' <returns>对象id数组</returns>
    ''' <remarks></remarks>
    Function FindByPoint(ByVal layerName As String, ByVal point As Object, ByVal radius As Integer) As String()
End Interface


